package cn.javass.dp.bridge.example6;

/**
 * 抽象消息发送消息类
 */
public abstract class AbstractMessage {

    protected MessageImplementor impl;

    public AbstractMessage(MessageImplementor impl) {
        this.impl = impl;
    }


    public void sendMessage(String message, String toUser) {
        this.impl.send(message, toUser);
    }
}
